package com.bookstore.client.user.service;

import com.bookstore.commons.beans.Order;
import com.bookstore.commons.beans.Orderitem;
import com.bookstore.commons.beans.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * company: www.abc.com
 * Author: Administrator
 * Create Data: 2021/5/8 0008
 */
public interface IUserService {
    int addUser(User user, HttpServletRequest request);

    int activeUser(String activeCode);

    User findUserByLogin(User user);

    User findEmail(String email);

    int modifyUser(User user);

    List<Order> findOrderByUser(Integer id);

    List<Orderitem> findOrderById(String id);

    void removeOrderById(String id, String flag);
}
